package com.binguo.model.mapper;

import com.binguo.model.core.Mapper;
import com.binguo.model.model.CustomerExtend;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

public interface CustomerExtendMapper extends Mapper<CustomerExtend> {

    @Update("update customer_extend set user_status = 1 where customer_id = #{customerId} AND shop_id =#{shopId}")
    Integer updateCustomerExtend(@Param("customerId") Integer customerId,@Param("shopId") Integer shopId);

    @Select("select * from customer_extend where customer_id = #{customerId} AND shop_id =#{shopId}")
    CustomerExtend getByShopIdAndCustomerId(@Param("customerId") Integer customerId,@Param("shopId") Integer shopId);
}